package cn.baage.campus.model.vo;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import org.springframework.format.annotation.DateTimeFormat;

import javax.validation.constraints.NotBlank;
import java.util.Date;
import java.util.List;

/**
 * @Description: 新增帖子VO
 * @Author: 八阿哥
 * @url: baage.cn
 * @Version: 1.0
 **/
@Data
@ApiModel(value = "新增帖子VO")
public class PostingAddReqVO {

    @ApiModelProperty(value = "分类ID")
    @NotBlank(message = "帖子分类不能为空")
    private String categoryId;

    @ApiModelProperty(value = "内容")
    @NotBlank(message = "帖子内容不能为空")
    private String detail;

    @ApiModelProperty(value = "联系方式类型")
    private Integer contactType;

    @ApiModelProperty(value = "联系方式")
    private String contact;

    @ApiModelProperty(value = "是否匿名")
    private Boolean anonymous;

    @ApiModelProperty(value = "图片列表")
    private List<String> imgList;

}
